package com.six.backend.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: skyler
 * @Date: 2021/11/10 10:24
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
@ApiModel("素材")
public class SourceMaterial {
    @NotNull
    @ApiModelProperty("素材id")
    private String id;

    @ApiModelProperty("素材名称")
    @NotNull
    private String name;

    @ApiModelProperty("素材类型")
    @NotNull
    private String type;

    @NotNull
    @ApiModelProperty("素材作者")
    private String author;

    @NotNull
    @ApiModelProperty("素材来源")
    private String source;

    @NotNull
    @ApiModelProperty("导入人")
    private String importPeople;

    @NotNull
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("导入时间")
    private Date importTime;

    @NotNull
    @ApiModelProperty("图片存储地址")
    private String address;

    @NotNull
    @ApiModelProperty("所属会议id")
    private Integer belongConferenceId;
}
